package com.example.zhangHuSheZhiController;

import com.example.zhangHuSheZhiPoJi.WenJianShangChuanJieGuo;
import com.example.zhangHuSheZhiPoJi.XiuGaiJieGuo;
import com.example.zhangHuSheZhiServcie.zhangHuSheZhiShiXianLei.ZhangHuSheZhiServciee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 。
 * @version 1.0
 * Create by 2022/11/29 15:04
 * 账户修改控制层
 */
@Controller
public class AccountModificationController {
    @Autowired
    private ZhangHuSheZhiServciee io;
   @RequestMapping("AddAttachmentToTheOrder")
    @ResponseBody
    public WenJianShangChuanJieGuo sc(MultipartFile file) {
        return io.ShangChan(file);
    }
    //修改名称
    @RequestMapping("ModifyName")
    @ResponseBody
    public XiuGaiJieGuo dlsk(String name){
        System.out.println(name);
        return io.XiuGaiMingZi(name);

    }
    //修改签名
    @RequestMapping("modifyPersonalSignature")
    @ResponseBody
    public XiuGaiJieGuo sdf(String freestyle){
        return io.XiuGaiQianming(freestyle);
    }
    //修改号码
    @RequestMapping("modifyPhone")
    @ResponseBody
    public XiuGaiJieGuo adfg(long phone){
        return io.XiuGaiHaoMa(phone);
    }
    //修改邮箱
    @RequestMapping("modifyEmail")
    @ResponseBody
    public XiuGaiJieGuo sdx(String email){
        return io.XiuGaiYouXiangDiZhi(email);
    }
    //修改密码
    @RequestMapping("modifyPassword")
    @ResponseBody
    public XiuGaiJieGuo jgh(String password){
        return io.XiuGaiMiMa(password);
    }
}
